<h2>Product List</h2>
<fieldset>
<legend>Product List</legend>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $paginator->sort('Name','Product.name');?></th>
            <th><?php echo $paginator->sort('Category','Category.name');?></th>
            <th class="actions">Actions</th>
        </tr>
        <?php foreach ($products as $row) :?>
            <tr>
                <td><?php echo $row['Product']['product_name']; ?></td>
                <td><?php echo $row['Category']['name']; ?></td>
                <td>
                    <?php echo $html->link("edit",array('action'=>'edit',$row['Product']['id']))?>,
                    <?php echo $html->link("view",array('action'=>'view',$row['Product']['id']))?>,
                    <?php echo $html->link("delete",array('action'=>'delete',$row['Product']['id']),null,"Delete?")?>
                </td>
            </tr>
        <?php endforeach;?>
    </table>
</fieldset>
<div class="paging">
    <?php echo $paginator->prev('<< Prev',array(),null,array('class'=>'disabled') )?>
    | <?php echo $paginator->numbers() ?>
    <?php echo $paginator->next('Next >>',array(),null,array('class'=>'disabled') )?>
</div>
